package com.yx.front.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 章节信息表
 * </p>
 *
 * @author YangXiong
 * @since 2023-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_chapter_message")
@ApiModel(value="ChapterMessage对象", description="章节信息表")
public class ChapterMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "书本主键")
    private Long bookId;

    @ApiModelProperty(value = "章节名")
    private String chapterName;

    @ApiModelProperty(value = "章节内容")
    private String chapterContext;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除，0未删，1已删")
    private Integer isDelete;

}
